package com.ruoyi.dgdData.service.impl;

import java.util.List;
import java.util.concurrent.Future;

import com.ruoyi.dgdData.domain.plat.DataDgdKdshj;
import com.ruoyi.dgdData.mapper.DataDgdKdshjMapper;
import com.ruoyi.dgdData.service.IDataDgdKdshjService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.AsyncResult;
import org.springframework.stereotype.Service;


/**
 * 单轨吊空动时间测试Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-12-28
 */
@Service
public class DataDgdKdshjServiceImpl implements IDataDgdKdshjService
{
    @Autowired(required = false)
    private DataDgdKdshjMapper dataDgdKdshjMapper;

    /**
     * 查询单轨吊空动时间测试
     * 
     * @param kdshjId 单轨吊空动时间测试主键
     * @return 单轨吊空动时间测试
     */
    @Override
    public DataDgdKdshj selectDataDgdKdshjByKdshjId(Long kdshjId)
    {
        return dataDgdKdshjMapper.selectDataDgdKdshjByKdshjId(kdshjId);
    }

    /**
     * 查询单轨吊空动时间测试
     *
     * @param dataTaskId
     * @return 单轨吊空动时间测试
     */
    @Override
    public Future<List<DataDgdKdshj>> selectDataDgdKdshjByDataTaskId(Long dataTaskId) {
        return new AsyncResult<>(dataDgdKdshjMapper.selectDataDgdKdshjByDataTaskId(dataTaskId));
    }

    /**
     * 查询单轨吊空动时间测试列表
     * 
     * @param dataDgdKdshj 单轨吊空动时间测试
     * @return 单轨吊空动时间测试
     */
    @Override
    public List<DataDgdKdshj> selectDataDgdKdshjList(DataDgdKdshj dataDgdKdshj)
    {
        return dataDgdKdshjMapper.selectDataDgdKdshjList(dataDgdKdshj);
    }

    /**
     * 新增单轨吊空动时间测试
     * 
     * @param dataDgdKdshj 单轨吊空动时间测试
     * @return 结果
     */
    @Override
    public int insertDataDgdKdshj(DataDgdKdshj dataDgdKdshj)
    {
        return dataDgdKdshjMapper.insertDataDgdKdshj(dataDgdKdshj);
    }

    /**
     * 批量新增空动时间测试
     *
     * @param dataDgdKdshjs
     */
    @Override
    public int batchDataDgdKdshj(List<DataDgdKdshj> dataDgdKdshjs) {
        return dataDgdKdshjMapper.batchDataDgdKdshj(dataDgdKdshjs);
    }

    /**
     * 修改单轨吊空动时间测试
     * 
     * @param dataDgdKdshj 单轨吊空动时间测试
     * @return 结果
     */
    @Override
    public int updateDataDgdKdshj(DataDgdKdshj dataDgdKdshj)
    {
        return dataDgdKdshjMapper.updateDataDgdKdshj(dataDgdKdshj);
    }

    /**
     * 修改单轨吊空动时间测试
     *
     * @param kdshjId
     * @return 结果
     */
    @Override
    public int updateDataDgdKdshjByKdshjId(Long kdshjId) {
        return dataDgdKdshjMapper.updateDataDgdKdshjByKdshjId(kdshjId);
    }

    /**
     * 修改单轨吊空动时间测试
     *
     * @param dataTaskId
     * @return 结果
     */
    @Override
    public int updateDataDgdKdshjByDataTaskId(Long dataTaskId) {
        return dataDgdKdshjMapper.updateDataDgdKdshjByDataTaskId(dataTaskId);
    }

    /**
     * 批量删除单轨吊空动时间测试
     * 
     * @param kdshjIds 需要删除的单轨吊空动时间测试主键
     * @return 结果
     */
    @Override
    public int deleteDataDgdKdshjByKdshjIds(Long[] kdshjIds)
    {
        return dataDgdKdshjMapper.deleteDataDgdKdshjByKdshjIds(kdshjIds);
    }

    /**
     * 删除单轨吊空动时间测试信息
     * 
     * @param kdshjId 单轨吊空动时间测试主键
     * @return 结果
     */
    @Override
    public int deleteDataDgdKdshjByKdshjId(Long kdshjId)
    {
        return dataDgdKdshjMapper.deleteDataDgdKdshjByKdshjId(kdshjId);
    }
}
